package com.shengxian.basic.mylogin.utils;



import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class ScheduledTask {



    //在每天凌晨1点，把前一天数据进行数据查询添加
    @Scheduled(cron = "0/5 * * * * ?")
    public void task2() {
        System.out.println("Scheduled");
    }
}
